<?php
/**
 * Simple view engine 
 *
 * @package Apricot
 */

/**
 * @see Apricot_View_EngineInterface
 */
require_once 'lib/Apricot/View/EngineInterface.php';

/**
 * Simple View Engine
 * 
 * @uses Apricot_View_EngineInterface
 * @package Apricot
 * @author Jansen Price <jansen.price@gmail.com>
 * @version $Id$
 */
class Apricot_View_Simple implements Apricot_View_EngineInterface
{
    /**
     * The body
     * 
     * @var string
     */
    protected $_body = '';

    /**
     * Constructor
     * 
     * @param array $options Options for construction
     * @return void
     */
    public function __construct($options = array())
    {
    }

    /**
     * Set option
     * 
     * @param string $name Option name
     * @param mixed $value Value
     * @return void
     */
    public function setOption($name, $value)
    {
    }

    /**
     * Get option
     * 
     * @param string $name Option name
     * @return mixed
     */
    public function getOption($name)
    {
        return '';
    }

    /**
     * Set body
     * 
     * @param string $content Content
     * @return void
     */
    public function setBody($content)
    {
        $this->_body = $content;
    }

    /**
     * Display assembled page
     * 
     * @param bool $output Whether to output or return
     * @return void
     */
    public function display($output = false)
    {
        echo $this->_body;
    }
}
